package com.site.wisdom_construction.entity.integralSupermarketModule;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.sql.Date;

/**
 * @Description  
 * @Author  DYF
 * @Date 2022-01-18 
 */
@ApiModel (value ="商品表实体类",description = "Commodity")
public class Commodity {
	/**
	 * 商品表id
	 */
   	@ApiModelProperty(value = "商品表id", name = "id")
	private Integer id;

	/**
	 * 项目id
	 */
   	@ApiModelProperty(value = "项目id", name = "projectId")
	private Integer projectId;

	/**
	 * 商品名称
	 */
   	@ApiModelProperty(value = "商品名称", name = "commodityName")
	private String commodityName;

	/**
	 * 商品价格
	 */
   	@ApiModelProperty(value = "商品价格", name = "commodityPrice")
	private Double commodityPrice;

	/**
	 * 商品图片
	 */
   	@ApiModelProperty(value = "商品图片", name = "commodityImg")
	private String commodityImg;

	/**
	 * 商品上传时间
	 */
   	@ApiModelProperty(value = "商品上传时间", name = "commodityTime")
	@JsonFormat(timezone = "GMT+8", pattern ="yyyy-MM-dd")
	private Date commodityTime;

	/**
	 * 状态(0:不可用 1:可用)
	 */
   	@ApiModelProperty(value = "状态(0:不可用 1:可用)", name = "status")
	private String status;

	public Commodity(){ super(); }

	public Commodity(Integer id, Integer projectId, String commodityName, Double commodityPrice, String commodityImg, Date commodityTime, String status) {
		this.id = id;
		this.projectId = projectId;
		this.commodityName = commodityName;
		this.commodityPrice = commodityPrice;
		this.commodityImg = commodityImg;
		this.commodityTime = commodityTime;
		this.status = status;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectId() {
		return this.projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public String getCommodityName() {
		return this.commodityName;
	}

	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}

	public Double getCommodityPrice() {
		return this.commodityPrice;
	}

	public void setCommodityPrice(Double commodityPrice) {
		this.commodityPrice = commodityPrice;
	}

	public String getCommodityImg() {
		return this.commodityImg;
	}

	public void setCommodityImg(String commodityImg) {
		this.commodityImg = commodityImg;
	}

	public Date getCommodityTime() {
		return this.commodityTime;
	}

	public void setCommodityTime(Date commodityTime) {
		this.commodityTime = commodityTime;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "{" +
				"id='" + id + '\'' +
				", projectId='" + projectId + '\'' +
				", commodityName='" + commodityName + '\'' +
				", commodityPrice='" + commodityPrice + '\'' +
				", commodityImg='" + commodityImg + '\'' +
				", commodityTime='" + commodityTime + '\'' +
				", status='" + status + '\'' +
				'}';
	}
}
